package cn.com.db.dao;


import cn.com.db.model.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface CartDao {

    void createCart(Cart cart);

    Cart getCartById(@Param("id") String cartId);

    Cart viewCart(@Param("id")String id);

    String getUserCartId(@Param("userId")String userId);

    Cart getUserCart(@Param("userId") String userId);


}
